<html>
<head><meta charset="utf-8"><title>volatile question · project-inline-asm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/index.html">project-inline-asm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/volatile.20question.html">volatile question</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="208320166"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/volatile%20question/near/208320166" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/volatile.20question.html#208320166">(Aug 28 2020 at 09:06)</a>:</h4>
<p>I'm replacing llvm_asm! with asm!. The line I'm replacing uses the <code>volatile</code> option. Am I correct in assuming that the asm! syntax assumes volatile by default?</p>



<a name="208320361"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/volatile%20question/near/208320361" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/volatile.20question.html#208320361">(Aug 28 2020 at 09:08)</a>:</h4>
<p>Yes, there is a <code>pure</code> flag instead that has the same effect as omitting <code>volatile</code> in <code>llvm_asm!</code>: <a href="https://github.com/rust-lang/rfcs/blob/master/text/2873-inline-asm.md#options-1">https://github.com/rust-lang/rfcs/blob/master/text/2873-inline-asm.md#options-1</a></p>



<a name="208320382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/volatile%20question/near/208320382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/volatile.20question.html#208320382">(Aug 28 2020 at 09:08)</a>:</h4>
<p>Thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>